package com.hnkywl.sts.dao.cggl;

import com.hnkywl.sts.entity.cggl.Cgd;
import com.hnkywl.sts.entity.djgl.Cgdx;
import net.ruixin.orm.hibernate.SimpleHibernateTemplate;
import org.springframework.stereotype.Repository;

/**
 * Created with IntelliJ IDEA.
 * User: Administrator
 * Date: 13-4-23
 * Time: 上午11:15
 * To change this template use File | Settings | File Templates.
 */
@Repository
public class CgdxDao extends SimpleHibernateTemplate<Cgdx, Long> {

    public void setCgdBaseFields(Cgd cgd, Cgdx cgdx) {
        cgd.setCreateDepartment(cgdx.getCreateDepartment());
        cgd.setCreateOrgan(cgdx.getCreateOrgan());
        cgd.setCreateUser(cgdx.getCreateUser());
        cgd.setLastUpdated(cgdx.getLastUpdated());
    }

}
